//
//  THSlidePopupView.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

static int THContentViewScrollViewTag = 30001;

@interface THSlidePopupView : UIView

@property (nonatomic, strong,readonly) UIPanGestureRecognizer    *panGesture;

@property (nonatomic, copy) BOOL(^viewWillDisMissBlock)(void);


+ (instancetype)popupViewWithFrame:(CGRect)frame contentView:(UIView *)contentView;

- (instancetype)initWithFrame:(CGRect)frame contentView:(UIView *)contentView;

- (void)setHeaderCornerRadius:(CGFloat)radius;

- (void)showFrom:(UIView *)fromView completion:(void (^)(void))completion;

- (void)dismiss;

- (void)dismiss:(void(^)(void))complete;

- (void)closeWithoutRequest:(void(^)(void))complete;


@end

NS_ASSUME_NONNULL_END
